/////////////////////////////////////////////////////////////////////////////
//  Copyright(c)2008, Qizhi Zhang. http://www.moorwind.com. 
//
//  Licensed under the Apache License, Version 2.0 (the "License");
//  you may not use this file except in compliance with the License.
//  You may obtain a copy of the License at
//
//    http://www.apache.org/licenses/LICENSE-2.0
//
//  Unless required by applicable law or agreed to in writing, software
//  distributed under the License is distributed on an "AS IS" BASIS,
//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//  See the License for the specific language governing permissions and
//  limitations under the License.
/////////////////////////////////////////////////////////////////////////////
package net.oauth
{
	/**
	 * The Consumer obtains an unauthorized Request Token by asking the Service Provider to issue a Token. 
	 * The Request Token’s sole purpose is to receive User approval and can only be used to obtain an Access Token. 
	 * <br/>The Service Provider documentation explains how to register for a Consumer Key and Consumer Secret, 
	 * and declares the following URLs. 
	 * 
	 * <br/><br/>IEndPoint提供了数据接口的方法
	 * 
	 * @author Qizhi Zhang
	 */
	public interface IEndPoint
	{
		/**
		 * Request Token URL: 
		 * <br/>  https://photos.example.net/request_token, using HTTP POST 
		 * 
		 */
		function get request_token_URL():String;
		/**
		 *  User Authorization URL: 
		 *  <br/>  http://photos.example.net/authorize, using HTTP GET
		 * 
		 */
		function get authorize_URL():String;
		/**
		 * Access Token URL:
		 * <br/>  https://photos.example.net/access_token, using HTTP POST 
		 * 
		 */
		function get access_token_URL():String;
		/**
		 * Protected Resource URL:  
		 * <br/>  http://photos.example.net/resource with required parameter file and optional parameter size 
		 * 
		 */
		function get resource_URL():String;
	}
}